	</div>
	{%insert cartinfo.tpl%}			
	<div id="footer">
	<div class="bottom-menu">
		{%if User%}
		<a href="{% ProfileUrl %}">Ваш профиль</a>
		{%endif%}
		<a href="{% CartUrl %}">Корзина</a>
		<a href="{% OrderUrl %}">Заказ</a>
	</div>
	<div class="copyright">Copyright &copy; 2012</div>
	</div>
</div>
</center>
<script language="javascript">
	$(document).ready(function(){
		$(document).scroll(function(){
			$('#cart_block').css('top',(40 + $(this).scrollTop())+'px');
			$("#SITEHELP_CONTAINER_2660").css('top',$(this).scrollTop()+(window.innerHeight - 140)+'px');
		});
	});
</script>
<script type="text/javascript" language="javascript"> document.write('<scri' + 'pt type="text/javas' + 'cript" language="javas' + 'cript" src="http://c.sitehelp.inkiev.net/api.cgi?c=2660&rnd=' + Math.random() + '"></sc' + 'ript>'); </script>
<script type="text/javascript" language="javascript"> document.write('<scri' + 'pt type="text/javas' + 'cript" language="javas' + 'cript" src="http://c.sitehelp.inkiev.net/code.cgi?c=2660&rnd=' + Math.random() + '"></sc' + 'ript>'); </script>
<script type="text/javascript" src="{% q < THEME_URL %}/js/jquery/jquery.cookie.js"></script>
<link type="text/css" href="{% q < THEME_URL %}/js/cloud-zoom/cloud-zoom.css" rel="stylesheet" />
<script type="text/JavaScript" src="{% q < THEME_URL %}/js/cloud-zoom/cloud-zoom.1.0.2.min.js"></script>
<script type="text/javascript" src="{% q < $THEME_URL %}/js/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<link rel="stylesheet" type="text/css" href="{% q < $THEME_URL %}/js/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
<script language="javascript">
	$(document).ready(function(){
		var exp = $.cookie('catalog_expanded');
		if (exp){
			exp = exp.split(' ');
			for (i = 0; i < exp.length; i++){
				$('#'+exp[i]).next().css('display','block');
				$('#'+exp[i]+' span.grower').addClass('OPEN');
			}
		}
		$('#catalog_menu span.grower').click(function(){
			$(this).parent().next().toggle();
			$(this).toggleClass('OPEN');
			var exp = $.cookie('catalog_expanded');
			if ($(this).hasClass('OPEN'))
				$.cookie('catalog_expanded',exp+' '+$(this).parent().attr('id'),{expires:24,path:'<?php echo TApplication::$Application->Root; ?>'});
			else
				$.cookie('catalog_expanded',exp.replace(' '+$(this).parent().attr('id'),''),{expires:24,path:'<?php echo TApplication::$Application->Root; ?>'});
		});
		$('#catalog_menu').mousemove(function(e){e.stopPropagation();});
		/*
		var sitehelp = $("#SITEHELP_CONTAINER_2660");
		sitehelp.css("position","relative");
		sitehelp.css("top",(window.innerHeight - 123)+"px");
		sitehelp.css("left","800px");
		*/
	});

	function showCatalogMenu(btn){
		$(btn).next().show();
		$(document).one("mousemove",function(){
			$(btn).next().hide();
		});
	}
</script>
</body>
</html>
